ds_list_size

语法:

ds_list_size(id);


参数 描述
id 要检查的数据结构的id。


返回: Real(实数)


描述

This function will return the "size" of the list, ie: the number of items that have been added into it.


例如:

if !ds_list_empty(control_list)
   {
   num = ds_list_size(control_list);
   }

The above code checks a ds_list to see if it is empty or not, and if it is not, it gets the number of items that it contains and stores the value in a variable.


上一页: DS Lists
下一页: ds_list_add
© Copyright YoYo Games Ltd. 2018 All Rights Reserved